package com.czm.art_light.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.czm.art_light.entity.ArtCategory;
import com.czm.art_light.param.response.ArtCategoryBasicInfoRespDto;
import com.czm.art_light.param.response.ArtWorkBasicInfoRespDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 类别信息 Mapper 接口
 */
@Mapper
public interface ArtCategoryMapper {

    /**
     * 根据类别id查找对应的类别信息
     */
    ArtCategory getById(@Param("id") Integer id);

    /**
     * 获取所有的类别信息(分页)
     */
    List<ArtCategoryBasicInfoRespDto> selectAll(Page<ArtCategoryBasicInfoRespDto> page);

    /**
     * 获取所有的类别信息(不分页)
     */
    List<ArtCategory> selectAllWithoutPage();
}
